package j04zuoye.raise;

public class RaiseTest2 {
    public static void main(String[] args) {
        Person p1 = new Person();
        p1.raisePet(()->{
            System.out.println("蛇，吃鸡蛋");
        });
        p1.raisePet(()->System.out.println("兔子，吃胡萝卜"));
    }
}
